﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>数据选择</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="X-UA-Compatible"  content="IE=EmulateIE7"> 
<link rel="stylesheet" type="text/css" href="/static/style.css">

<script src="/static/ccorrect_btn.js"></script>
<script src="/static/MochiKit.js"></script>
<script src="/static/module.js"></script>

<script>
    function query(){
        var jyrq = document.getElementById("sel_hj").value;
        var jymc = document.getElementById("sel_hj").value;
        var shzh = document.getElementById("sel_hj").value;
        var jyzt = document.getElementById("sel_hj").value;
        var jgdm = document.getElementById("sel_hj").value;
        var ywdm = document.getElementById("sel_hj").value;
        url = '/jyjk/idx/?jyrq='+jyrq+'&jymc='+jymc+'&shzh='+shzh+'&jyzt='+jyzt+'&jgdm='+jgdm+'&ywdm='+ywdm+'&seed='+Math.random();
//        "/oatest?ywlx={{ywlx}}&jylx={{jylx}}&sendhost={{sendhost}}&yzflsh={{yzflsh}}&yjyrq={{yjyrq}}&jyje={{jyje}}"

        window.location.href = url;
    }
    function add_data(op){
        document.getElementById("op").value=op;
        document.getElementById("form1").submit();
    }
</script>
</head>
<body class="bodycolor" topmargin="5">
    <table class="TableBlock" width="100%" align="center">
        <form name='form1' id='form1' action="/oatest_sub_kjzf" method="post">
            <tr>
                <!--td class="TableContent" align="center" rowspan="2" ><b>操作</b></td-->
                <td class="TableContent" align="center"><b>操作</b></td>
                <td class="TableContent">
                    &nbsp;&nbsp;环境:<input name="sel_hj" id="sel_hj" type="text" class="SmallInput" value="{{sel_hj or ''}}"  style = "width:67px;"/>
                    &nbsp;&nbsp;卡类型:<input type="text" name="sel_klx" id="sel_klx" class="BigInput" value="{{sel_klx or ''}}"  style = "width:17px;"/>
                    &nbsp;&nbsp;卡号:<input type="text" name="sel_kh" id="sel_kh" class="BigInput" value="{{sel_kh or ''}}"  style = "width:100px;"/>
                    &nbsp;&nbsp;户名:<input type="text" name="sel_hm" id="sel_hm" class="SmallInput" value="{{sel_hm or ''}}" style = "width:97px;"/>
                    &nbsp;&nbsp;证件类型:<input type="text" name="sel_zjlx" id="sel_zjlx" class="SmallInput" value="{{sel_zjlx or ''}}" style = "width:17px;"/>
                    &nbsp;&nbsp;证件号码:<input type="text" name="sel_zjhm" id="sel_zjhm" class="SmallInput" value="{{sel_zjhm or ''}}" style = "width:97px;"/>
                    &nbsp;&nbsp;手机号:<input type="text" name="sel_sj" id="sel_sj" class="SmallInput" value="{{sel_sj or ''}}" style = "width:97px;"/>
                    <input type="hidden" name="ywlx" id="ywlx" class="SmallInput" value="{{ywlx or ''}}" style = "width:97px;"/>
                    <input type="hidden" name="jylx" id="jylx" class="SmallInput" value="{{jylx or ''}}" style = "width:97px;"/>
                    <input type="hidden" name="sendhost" id="sendhost" class="SmallInput" value="{{sendhost or ''}}" style = "width:97px;"/>
                    <input type="hidden" name="yzflsh" id="yzflsh" class="SmallInput" value="{{yzflsh or ''}}" style = "width:97px;"/>
                    <input type="hidden" name="yjyrq" id="yjyrq" class="SmallInput" value="{{yjyrq or ''}}" style = "width:97px;"/>
                    <input type="hidden" name="jyje" id="jyje" class="SmallInput" value="{{jyje or ''}}" style = "width:97px;"/>
                    <input type="hidden" name="op" id="op" class="SmallInput" value="{{op or ''}}" style = "width:97px;"/>
                    <input type="hidden" name="data_sel" id="data_sel" class="SmallInput" value="1" style = "width:97px;"/>
                    &nbsp;&nbsp;<input  onClick="add_data(2)" type="button"  value="查询" name="B1">&nbsp;
                    <input  onClick="add_data(1)" type="button"  value="新增" name="B1">&nbsp;

                </td>
            </tr>

        </form>
    </table>

    <table class="TableList" width="100%">
        <tr class="TableHeader">
            <td nowrap align="center">环境</td>
            <td nowrap align="center">银行账号类型</td>
            <td nowrap align="center">银行账号</td>
            <td nowrap align="center">客户名称</td>
            <td nowrap align="center">证件类型</td>
            <td nowrap align="center">证件号码</td>
            <td nowrap align="center">手机号</td>
            <td nowrap align="center">备注</td>
            <td nowrap align="center" style="display: none;">方向</td>
            <td nowrap align="center">操作</td>
        </tr>
    
    {%for row in ls_lst %}
        <tr class="TableLine{{ls_lst.index(row)%2}}">
            <td nowrap align="center">{{row['hj']}}</a</td>
            <td nowrap align="center">{{row['yhzhlx']}}</td>
            <td nowrap align="center">{{row['yhkh']}}</td>
            <td nowrap align="center">{{row['khmc']}}</td>
            <td nowrap align="center">{{row['zjlx']or''}}</td>
            <td nowrap >{{row['zjhm'] or ''}}</td>
            <td nowrap >{{row['sjhm'] or ''}}</td>
            <td nowrap align="right" >{{row['bz'] }}</td>
            <td nowrap align="center" style="display: none;">
            </td>
            <td nowrap align="center">
            <a href="/oatest?ywlx={{ywlx}}&yhzhlx={{row['yhzhlx']}}&jylx={{jylx}}&zjlx={{row['zjlx']}}&sendhost={{sendhost}}&yhkh={{row['yhkh']}}&zjhm={{row['zjhm']}}&sjhm={{row['sjhm']}}&khmc={{row['khmc']}}&yzflsh={{yzflsh}}&yjyrq={{yjyrq}}&jyje={{jyje}}&qyxyh={{row['qyxyh']}}">选择</a>
            </td>
        </tr>
    {%endfor%}
    </table>
</body>
</html>